<template>
    <div id="app">
        <Layout>
            <Header>
                <Menu mode="horizontal" theme="dark" active-name="1">
                    <div class="layout-logo"></div>
                    <div class="layout-nav">
                        <MenuItem name="1" to="/">
                            <Icon type="ios-navigate"></Icon>
                            主页
                        </MenuItem>
                        <MenuItem name="2" to="/ownote">
                            <Icon type="ios-keypad"></Icon>
                            Ownote 
                        </MenuItem>
                        <MenuItem name="3" to="/todo">
                            <Icon type="ios-analytics"></Icon>
                            Todo
                        </MenuItem>
                        <MenuItem name="4" to="/music">
                            <Icon type="ios-paper"></Icon>
                            Music
                        </MenuItem>
                    </div>
                </Menu>
            </Header>
            <Content :style="{padding: '0 50px'}">
                <Breadcrumb :style="{margin: '20px 0'}">
                    <BreadcrumbItem>Home</BreadcrumbItem>
                    <BreadcrumbItem>Layout</BreadcrumbItem>
                </Breadcrumb>
                <Card>
                    <div style="min-height: 100px;">
                        Content
                        <router-view></router-view>
                    </div>
                    
                </Card>
            </Content>
            <Footer class="layout-footer-center">2018 illya.top</Footer>
        </Layout>
        
    </div>
</template>
<script>
export default {
  name: "app",
  data() {
    return {
      theme1: "dark"
    };
  }
};
</script>

<style scoped>
.layout {
  border: 1px solid #d7dde4;
  background: #f5f7f9;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.layout-logo {
  width: 100px;
  height: 30px;
  background: #5b6270;
  border-radius: 3px;
  float: left;
  position: relative;
  top: 15px;
  left: 20px;
}
.layout-nav {
  width: 420px;
  margin: 0 auto;
  margin-right: 20px;
}
.layout-footer-center {
  text-align: center;
}
</style>
